onload=function () {
    var btn = document.getElementById('btn')
    btn.onclick = function () {
        alert('hello')
    }

}